package com.sun.jdk.lambda.comparator;

import com.sun.jdk.lambda.domain.Person;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;

public class MyComparator implements Comparator<Person> {
    @Override
    public int compare(Person o1, Person o2) {
        return o1.getAge()-o2.getAge();
        
    }
}
